package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.api.model.vo.GoodsImgVo;
import com.weixing.mall.provider.model.domain.GoodsImg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-商品图片表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface GoodsImgMapper extends BaseMapper<GoodsImg> {
    GoodsImg selectGoodsId(Long id);

    void update(@Param("qs")GoodsImg img);

    List<GoodsImgVo> findGoodsImgVoByGoodsId(long goodsId);

    List<GoodsImg> selectByGoodIds(@Param("array")List<Long> array);

    List<String> findGoodsImgByGoodsId(long goodsId);

    void deleteByGoods(Long id);

    void deleteByGoodsId(Long id);

    List<GoodsImg> selectList(Long goodsId);

    List<GoodsImg> listAll();
}
